package com.icatw.club.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 社团会员对象 club_member
 *
 * @author icatw
 * @date 2022-06-09
 */
@Data
public class ClubMember implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 成员姓名
     */
    @Excel(name = "姓名", width = 15)
    private String memberName;

    /**
     * 性别，男，女
     */
    @Excel(name = "性别", width = 15)
    private String memberSex;
    /**
     * 手机号
     */
    @Excel(name = "手机号", width = 20)
    private String memberPhone;
    /**
     * 年级
     */
    @Excel(name = "年级", width = 15)
    private String memberGrade;
    /**
     * 二级学院id
     */
    //@Excel(name = "二级学院")
    private Long collegeId;
    /**
     * 二级学院
     */
    @TableField(exist = false)
    @ExcelEntity
    private ClubCollege clubCollege;

    /**
     * 职位id
     */
    private Integer positionId;
    /**
     * 职位实体
     */
    @TableField(exist = false)
    @ExcelEntity
    private ClubPosition clubPosition;
    /**
     * 班级
     */
    @Excel(name = "班级", width = 15)
    private String memberClass;
    /**
     * 加入日期
     */
    @Excel(name = "加入日期", format = "yyyy-MM-dd", width = 20)
    private LocalDate createDate;

    /**
     * 修改日期
     */
    @Excel(name = "修改日期", format = "yyyy-MM-dd", width = 20)
    private LocalDate updateDate;

}
